//WIP


denominator= 0


//adds together the values
for (i=1;i<7;i++){

numorator[i] = global.dice[i]+denominator
denominator += global.dice[i]
}

roll = random(1)
for (i=1;i<7;i++){
if roll <=numorator[i]/denominator{
return i
}
}
return 6


/*
return 4
